package edu.mse.camel.client.events.server;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import edu.mse.camel.client.events.AbstractEvent;
import edu.mse.camel.client.events.EventIDs;
import edu.mse.camel.client.events.IEvent;

public class QuerySessionListEvent extends AbstractEvent implements IEvent {
	
	
	public class SessionList {
		private long sessionId;
		private Date timeCreated;
	    private Date timeLastUpdated;
	    private String title;
	    private String description;
	    private String creator;
	    private List<String> participants;
	    private Boolean playbackOnly;
		
	    public void setSessionId(Long sessionId) {
	    	this.sessionId = sessionId;
	    }
		public Long getsessionId() {
			return sessionId;
		}
		public Date getTimeCreated() {
	        return timeCreated;
	    }

	    public void setTimeCreated(Date timeCreated) {
	        this.timeCreated = timeCreated;
	    }

	    public Date getTimeLastUpdated() {
	        return timeLastUpdated;
	    }

	    public void setTimeLastUpdated(Date timeLastUpdated) {
	        this.timeLastUpdated = timeLastUpdated;
	    }

	    public String getTitle() {
	        return title;
	    }

	    public void setTitle(String title) {
	        this.title = title;
	    }

	    public String getDescription() {
	        return description;
	    }

	    public void setDescription(String description) {
	        this.description = description;
	    }

	    public String getCreator() {
	        return creator;
	    }

	    public void setCreator(String creator) {
	        this.creator = creator;
	    }

		public List<String> getParticipants() {
	        return participants;
	    }
		public void setParticipantList(List<String> participants) {
			this.participants = participants;
		}
		public void setPlaybackOnly(Boolean playbackOnly) {
			this.playbackOnly = playbackOnly;
		}
		public Boolean getPlaybackOnly() {
			return playbackOnly;
		}	 
	}
    
	
	private List<SessionList> sessions = new ArrayList<SessionList>();
	public void setSessionList(List<SessionList> s) {
		this.sessions = s;
	}
	public List<SessionList> getSessionList()
	{
		return sessions;
	}
    public SessionList getNewSessionList() {
    	return new SessionList();
    }
	@Override
	public String getEventID() {
		// TODO Auto-generated method stub
		return EventIDs.QUERY_SESSION_LIST_EVENT;
	}
    
}
